﻿<%@ Page Title="Frontdesk - AutoResponder Editor" Language="C#" MasterPageFile="~/Views/Shared/Frontdesk.Master"
    Inherits="System.Web.Mvc.ViewPage<Sendz.WebUI.Models.ResetPasswordViewModel>" %>

<asp:Content ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Reset User Password</h2>
    <% using (Ajax.BeginForm(new AjaxOptions { OnBegin = "onBegin", UpdateTargetId = "wrapper", InsertionMode = InsertionMode.Replace }))
       { %>
    <div class="form-field">
        <div class="form-field-label">
            <%: Html.LabelFor(p => p.Password) %>
        </div>
        <div class="form-field-error">
            <%: Html.ValidationMessageFor(p => p.Password)%>
        </div>
        <div class="form-field-input">
            <%: Html.TextBoxFor(p => p.Password, new { @class = "frontdesk" })%>
        </div>
    </div>
    <div class="form-field">
        <div class="form-field-label">
            <%: Html.LabelFor(p => p.ConfirmPassword)%>
        </div>
        <div class="form-field-error">
            <%: Html.ValidationMessageFor(p => p.ConfirmPassword)%>
        </div>
        <div class="form-field-input">
            <%: Html.TextBoxFor(p => p.ConfirmPassword, new { @class = "frontdesk" })%>
        </div>
    </div>
    <div class="buttons">
        <%: Html.Hidden("UserKey", Model.UserKey) %>
        <input type="submit" class="button" value="Reset Password" title="Reset (update) the password and email it to the user" />
    </div>
    <% } %>
</asp:Content>
<asp:Content ContentPlaceHolderID="Sidebar" runat="server">
    <% Html.RenderPartial("videohelp"); %>
</asp:Content>
<asp:Content ContentPlaceHolderID="footer" runat="server">
</asp:Content>
